// JavaScript Document
var xmlhttp;
		function createXMLHTTPRequest()
		{
			if(window.XMLHttpRequest)
			{
				return new XMLHttpRequest();
			}
			else if(window.ActiveXObject)
			{
				return new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		function Xoa()
		{
			var TenDanhMuc = document.getElementById('DanhMucDangChon').value;
			if(TenDanhMuc !='')
			{
				var url="XoaDanhMuc.php?TenDanhMuc=" + TenDanhMuc ;
				xmlhttp.onreadystatechange=XoaDanhMuc;
				xmlhttp.open("get",url,true);
				xmlhttp.send(null);
			}
			else
			{
				alert("Khong co gia tri de xoa");
			}
		}
		
		function XoaDanhMuc()
		{
			if(xmlhttp.readyState==4 && xmlhttp.status==200)
			{
				var div=document.getElementById("DanhMucCha");
				div.innerHTML=xmlhttp.responseText;
				
			}
		}